package com.nobuyme.box.app;


import com.nobuyme.box.common.http.UrlBase;

/**
 * url center
 *
 * @Author: PV
 * @E-mail: pengveivei@sina.cn
 * @CreateDate: 2016/7/18 15:04
 * @Version: 1.0.0
 */
public class UrlCenter {

    /**
     * 获取token
     */
    public final static String LOGIN = UrlBase.URL_PREFIX + "/user/login";
    //轮播广告
    public static final String BANNER_LIST = UrlBase.URL_PREFIX + "/banner/list";

    //分享列表
    public static final String SHARE_LIST = UrlBase.URL_PREFIX + "/goods/comment/list/%1$d";
    //商品详情
    public static final String GOODS_DETAIL = UrlBase.URL_PREFIX + "/goods/%1$d";
    //年龄段列表
    public static final String AGE_LIST = UrlBase.URL_PREFIX + "/goods/category";
    //商品列表
    public static final String GOODS_LIST = UrlBase.URL_PREFIX + "/goods/list";

    //替换商品
    public static final String PUT_GOODS = UrlBase.URL_PREFIX + "/toybox/%1$d";
    //管理员登录
    public static final String AMAIN =UrlBase.URL_SAO_PREFIX +"/#/manager/login?toyboxId=%1$d";
    //归还
    public static final String RETUNT_GOODS =UrlBase.URL_SAO_PREFIX +"/#/giveBack?toyboxId=%1$d";

    //开始租赁
    public static final String START_RENT = UrlBase.URL_SAO_PREFIX +"/?v2017#/rent?latticeId=%1$d";

    //使用帮助
    public static final String USER_HELP = UrlBase.URL_PREFIX +"/toybox/help";

    //用户信息
    public static final String USER_INFO = UrlBase.URL_PREFIX +"/toybox/%1$s";

    //自动更新
    public static final String USER_UPDATA = UrlBase.URL_PREFIX +"/toybox/getVersion";

    //柜子轮询
    public static final String BOX_POLLING = UrlBase.URL_PREFIX +"/toybox/polling/%1$d";

    //柜子打开要返回给后台的状态
    public static final String BOX_OPEN = UrlBase.URL_PREFIX +"/toybox/open?toyboxId=%1$d&latticeId=%2$d&type=%3$d";

    //获取索引
    public static final String GETINDEX = UrlBase.URL_PREFIX +"/toybox/getIndex?latticeId=%1$d";

    //
    public static final String ADMIN_LOGOUT = UrlBase.URL_PREFIX +"/weixin/admin/logout?toyboxId=%1$d";
    //生成二维码地址
    public static final String SCAN_ADRESS = UrlBase.URL_PREFIX +"/weixin/showqrcode?ticket=%1$s";





    // region 七牛云token

    /**
     * QINIU_TOKEN
     */
    public final static String QINIU_TOKEN = UrlBase.URL_PREFIX + "/qiniu/uptoken";
    /**
     * QINIU_ OUT LINK 用来跟key拼接生成文件url
     */
        public static final String OUTER_LINK = "http://or84r4lrb.bkt.clouddn.com/";
    // endregion

}
